<html>
<head><meta charset="utf-8"><title>A --temps-dir option for specifying where… compiler-team#423 · t-compiler/major changes · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/index.html">t-compiler/major changes</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html">A --temps-dir option for specifying where… compiler-team#423</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="233270024"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/233270024" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> triagebot <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#233270024">(Apr 06 2021 at 05:56)</a>:</h4>
<p>A new proposal has been announced: <a href="https://github.com/rust-lang/compiler-team/issues/423">A --temps-dir option for specifying where the intermediate files are written #423</a>. It will be announced at the next meeting to try and draw attention to it, but usually MCPs are not discussed during triage meetings. If you think this would benefit from discussion amongst the team, consider proposing a design meeting.</p>



<a name="233271782"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/233271782" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#233271782">(Apr 06 2021 at 06:22)</a>:</h4>
<p>Rustc uses the tempfile crate elsewhere in the linking code. It could be used for temp artifacts that end up in the target dir right now to put them inside a temp dir relative to the target dir.</p>



<a name="233271993"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/233271993" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#233271993">(Apr 06 2021 at 06:24)</a>:</h4>
<p>The mentioned alternative of hashing the commandline arguments would be nicer though as it works better with split debuginfo by keeping all object files close together while still preventing collisions. It also doesn't require changes to cargo.</p>



<a name="233272044"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/233272044" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#233272044">(Apr 06 2021 at 06:25)</a>:</h4>
<p>By the way other things do also collide when using different <code>--crate-type</code> but the same name like the incremental cache. You can use multiple <code>--crate-type</code> at the same time to build the crate in multiple formats at the same time.</p>



<a name="237663249"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/237663249" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> triagebot <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#237663249">(May 06 2021 at 14:05)</a>:</h4>
<p><span class="user-group-mention" data-user-group-id="492">@T-compiler</span>: Proposal <a href="https://github.com/rust-lang/compiler-team/issues/423#issuecomment-833551099">#423</a> has been seconded, and will be approved in 10 days if no objections are raised.</p>



<a name="237666901"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/237666901" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#237666901">(May 06 2021 at 14:28)</a>:</h4>
<p><span class="user-mention" data-user-id="116083">@pnkfelix</span> Have you read <a href="#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423/near/233271782">https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423/near/233271782</a>?</p>



<a name="239601090"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/239601090" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> triagebot <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#239601090">(May 20 2021 at 14:29)</a>:</h4>
<p>This proposal has been accepted: <a href="https://github.com/rust-lang/compiler-team/issues/423">#423</a>.</p>



<a name="239611473"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/A%20--temps-dir%20option%20for%20specifying%20where%E2%80%A6%20compiler-team%23423/near/239611473" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andrew Chin (eminence) <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/A.20--temps-dir.20option.20for.20specifying.20where.E2.80.A6.20compiler-team.23423.html#239611473">(May 20 2021 at 15:30)</a>:</h4>
<p>i wonder if this option might help speed up compiles for people who are building on a slow filesystem (but have access to a faster local temp dir)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>